import java.util.Scanner;

public class dome6 {
    public static void main(String[] args) {
        System.out.println("是否为会员？");
        Scanner sc=new Scanner(System.in);
        String a =sc.next();
        switch (a){
            case"是":
                System.out.println("请输入商品的总价");
                Scanner sc1 =new Scanner(System.in);
                double price1=sc1.nextDouble();
                if (price1>=100){
                    price1=0.8*price1;
                }else if (price1<100){
                    price1=0.9*price1;
                }
                System.out.println("最终需付款"+price1+"元");
            default:
                System.out.println("请输入商品总价");
                Scanner sc2=new Scanner(System.in);
                double price2= sc2.nextDouble();
                if (price2>=100){
                    price2=0.9*price2;
                }else {
                    System.out.println("最终需付款"+price2+"元");
                };
        }
    }
}